import request from '../Request'


//文章功能
const article = {

  // 文章添加
  articleupAPI(title, author, sort, time, article) {
    return request.post(`/api/articles`, { title, author, sort, time, article })
  },

  // 文章列表
  articlelistAPI() {
    return request.get(`/api/articles`)
  },

  // 文章删除
  articledelAPI(id) {
    return request.delete(`/api/articles`, { data: { id } })
  },
}

export default article